import { request } from "@/utils/http";
import { ReaHospitalList, ReqHospitallistListAll, ReqprovinceList } from "./model/hospitalListType";

//初始化列表数据
export function getHospitalList({page,limit,...arg}:ReaHospitalList){
    return request.get<any,ReqHospitallistListAll>(`/admin/hosp/hospital/${page}/${limit}`)
}
// 获取省份
export function getprovinceValue(){
    return request.get<any,ReqprovinceList>("/admin/cmn/dict/findByDictCode/province")
}
// 获取市份
export function getCityValue(id:number){
    return request.get<any,ReqprovinceList>(`/admin/cmn/dict/findByParentId/${id}`)
}// 获取区份
export function getquValue(id:number){
    return request.get<any,ReqprovinceList>(`/admin/cmn/dict/findByParentId/${id}`)
}